/* eslint-disable no-useless-escape */
if (typeof process === 'object') {
  const scripts = [];
  // const locl = process.env.NODE_ENV === 'development' ? 'http://localhost:8601/' : '/'
  const locl = '/'
  // Dynamically insert the DLL script in development env in the
  // renderer process
  scripts.push(`${locl}lib.min.js`);
  scripts.push(`${locl}chunks/gui.js`);
  document.write(
    scripts
      .map(script => `<script defer src="${script}"><\/script>`)
      .join('')
  );
}